﻿using SecsEquip300;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EquipSecs300
{
    public class SecsEquipEx
    {
        public SecsEquipEx m_pMain { get; set; }
        public string m_pName { get; set; }
        public CSecsEquip300 m_pSecs { get; set; }
        public SecsEquipHelper SecsEquipHelper { get; set; }
        public Action<string> AcLogMsg { get; set; }
        public void LogMsg(string strLog)
        {
            string Log = "SECS: " + strLog;
            AcLogMsg?.Invoke(Log);
        }
        public void LogMsg(string strLog, MsgSource_KE msgSource)
        {
            string Log = "";
            if (msgSource == MsgSource_KE.EQ)
            {
                Log = "SECS>>>: " + strLog;
            }
            else if (msgSource == MsgSource_KE.EAP)
            {
                Log = "SECS<<<: " + strLog;
            }
            AcLogMsg?.Invoke(Log);
        }
        // 更新数据
        public virtual void UpdateData()
        {

        }
    }
}
